<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>属性选择器</title>
    <style>
        [type]{
            color: red;
        }
        [type=password]{
            color: blue;
        }
        button[type]{
            color: deeppink;
        }
    </style>
</head>
<body>
    用户名:<input type="text"><br>
    密码:<input type="password"><br>
    邮箱:<input type="email"><br>>
    <button type="submit">提交</button><br>

</body>
</html>